package com.ant.business.system.entity;

import com.ant.common.base.BaseDomain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户token
 *
 * @description
 * @create 2023-07-16 16:57:44
 **/
@TableName(value = "tb_user_token")
@Data
@ApiModel(value = "用户token")
public class UserToken extends BaseDomain {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户信息
     */
    @TableField(value = "user_info")
    private String userInfo;

    /**
     * token
     */
    @TableField(value = "token")
    private String token;

    /**
     * 过期时间
     */
    @TableField(value = "expire_time")
    @ApiModelProperty(value = "过期时间", hidden = true)
    private Long expireTime;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Integer userId;

    /**
     * 单位编号
     */
    @TableField(value = "unit_id")
    @ApiModelProperty(value = "单位编号")
    private Integer unitId;
}